<%-- 
    Document   : adduser
    Created on : Jan 8, 2012, 1:37:49 AM
    Author     : TrieuNX
--%>

<%@include file="prelude.jsp" %>
<div id="main">
    <%@include file="manageCustomerHeader.jsp" %>
    <div id="middle" >
        <%@include file="manageCustomerMenu.jsp" %>
        <div id="center-column">
            <div class="top-bar">

                <h1>Contents</h1>
                <div class="breadcrumbs"><a href="#">Administrator</a> /<a href="#">Manage Customer</a> / <a href="#">Edit Customer</a></div>
            </div><br />

            <form action="/opt/doEditCustomer.htm" method="post">
                <div>
                    <s:actionerror></s:actionerror>
                </div>
                <div class="table">
                    <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                    <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />

                    <table class="listing form" cellpadding="0" cellspacing="0" width="600px!impotant">
                        <tr>
                            <th class="full" colspan="2">Information</th>
                        </tr>
                        <tr>
                            <td class="first" width="150">Email</td>
                            <td><input type="text" class="text" name="email" readonly="true" value="${requestScope['email']}" /></td>
                            <%-- <td class="last" width="120"></td>--%>
                        </tr>
                        <%--  <tr>
                           <td class="first" width="150"><s:text name="user.password" ></s:text></td>
                             <td class="last" width="120"><input type="password" class="text" name="password" /> &nbsp;<s:fielderror name="password" fieldName="password" /></td>

                        </tr>--%>
                        <tr class="bg">
                            <td class="first" width="150">Phone Number</td>

                            <td><input type="text" class="text" name="number"  value="${requestScope['number']}"/><s:fielderror name="number" fieldName="number"/></td>
                             <%--    <td class="last" width="120"><s:fielderror name="number" fieldName="number"/></td>--%>
                        </tr>  
                        <tr>
                            <td class="first" width="150">First Name</td>
                            <td><input type="text" class="text" name="firstName"  value="${requestScope['firstName']}" /></td>
                            <%-- <td class="last" width="120"></td>--%>
                        </tr>
                        <tr class="bg">
                            <td class="first" width="150">Last Name</td>
                            <td><input type="text" class="text" name="lastName"  value="${requestScope['lastName']}"/></td>
                            <%-- <td class="last" width="120"></td>--%>
                        </tr>

                        <tr >
                            <td class="first" width="150">City</td>
                            <td><input type="text" class="text" name="city"  value="${requestScope['city']}"/></td>
                             <%-- <td class="last" width="120"></td>--%>
                        </tr>
                        <tr class="bg">
                            <td class="first" width="150">Country</td>
                            <td> <select name="country">
                                    <c:if test="${requestScope['country']=='en'}">
                                        <option value="en" selected="true">England</option>
                                        <option value="vn">Vietnam</option>
                                    </c:if>

                                    <c:if test="${requestScope['country']=='vn'}">
                                        <option value="en">England</option>
                                        <option value="vn" selected="true">Vietnam</option>
                                    </c:if>
                                    <c:if test="${requestScope['country']=='vi'}">
                                        <option value="en">England</option>
                                        <option value="vi" selected="true">Vietnam</option>
                                    </c:if>

                                </select>
                            </td>
                            
                        </tr>

                        <tr class="bg">

                            <td  colspan="2">
                                <input type="submit" value="Save" onclick="return confirm('Do you want to save')" />
                                <input type="button" value="Cacel" style="margin-left:100px" onclick="document.location='/opt/manageCustomer.htm'">
                            </td>
                        </tr>
                    </table>
                </div>
            </form>


        </div>
    </div>
    <%@include file="footer.jsp" %>
</div>